package com.itheima.demo.repo;

import com.itheima.demo.bean.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface UserRepo extends JpaRepository<User, Integer> {
    public User findByUsername(String username);
    @Query("from User where password=?1")
    public List<User> test01(String password);
}
